package com.zwwang.readconfig.dto;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value = "classpath:custom.properties", encoding = "gbk")
@ConfigurationProperties("student")
@Data
public class StudentDto
{
    private String name;

    private int age;

    private double score;

}
